@echo off
cd /d %~dp0
call .venv\Scripts\activate.bat
pyinstaller --onefile --icon=files/icon/Excel.ico --paths=. --clean ^
    --exclude-module PyQt5 ^
    --exclude-module keyboard ^
    --exclude-module openai ^
    --exclude-module dashscope ^
    --exclude-module websocket-client ^
    --exclude-module tencentcloud-sdk-python-ocr ^
    --exclude-module tencentcloud-sdk-python-hunyuan ^
    --exclude-module scipy ^
    --exclude-module matplotlib ^
    --exclude-module aiohttp ^
    --exclude-module httpx ^
    --exclude-module anyio ^
    --exclude-module h11 ^
    --exclude-module httpcore ^
    --exclude-module sniffio ^
    apps/export_excel.py
if exist dist\export_excel.exe move /Y dist\export_excel.exe dist\DaShou-Export.exe
echo.
echo Build Complete: dist\DaShou-Export.exe
pause
